package com.eastjet.maintenance.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import com.ruoyi.common.core.annotation.Excel;
import lombok.Data;

/**
 * 部门表
 * @TableName device_dept
 */
@TableName(value ="device_dept")
@Data
public class DeviceDept implements Serializable {


    // 这个字段在数据库表中并不存在
    @TableField(exist = false)
    private DeviceUser user; // 与device_user表的关联

    /**
     * 部门编号
     */
    @TableId(type = IdType.AUTO)
    private Integer deptId;

    /**
     * 部门名称
     */
    @Excel(name = "部门名称")
    private String deptName;

    /**
     * 部门级别
     */
    private Integer deptGrade;

    /**
     * 父级部门
     */
    private Integer deptParent;

    /**
     * 部门编号(EQ001)
     */
    private String code;

    /**
     * 部门主管
     */
    private String supervisor;

    /**
     * 部门状态(0-启用 1-禁用)
     */
    @Excel(name = "部门名称")
    private Integer deptState;

    /**
     * 备注
     */
    private String notes;

    /**
     * 逻辑删除
     */
    private Integer isDelete;

    @Override
    public String toString() {
        return "DeviceDept{" +
                "user=" + user +
                ", deptId=" + deptId +
                ", deptName='" + deptName + '\'' +
                ", deptGrade=" + deptGrade +
                ", deptParent=" + deptParent +
                ", code='" + code + '\'' +
                ", supervisor='" + supervisor + '\'' +
                ", deptState=" + deptState +
                ", notes='" + notes + '\'' +
                ", isDelete=" + isDelete +
                '}';
    }
}